

import redis
import config


redis_obj = redis.StrictRedis(
    host=config.redisServer,
    port=1111,
    db=13,
    decode_responses=True,
    password="Fmsuh1J50R%T*Lq15TL#IkWb#oMp^@0OYzx5Q2CSEEs$v9dd*mnqRFByoeGZ"
)


redis_key = "XHS::XIANSUO::LIST::USER_CK"
with open('register_ok.txt', 'r', encoding="utf8") as f:
    for line in f:
        data = line.strip()
        if data:
            redis_obj.lpush(redis_key, data)
